package com.ss.android.common.util;

public class CommonConstants {
    public static final String API_HOST_API_SNSSDK = "isub.snssdk.com";
    public static final String API_HOST_I_SNSSDK = "ib.snssdk.com";
    public static final String API_HOST_SI_SNSSDK = "security.snssdk.com";
    public static final String API_HOST_SRV_SNSSDK = "ichannel.snssdk.com";
    public static final String API_URL_PREFIX_API = "http://isub.snssdk.com";
    public static final String API_URL_PREFIX_I = "http://ib.snssdk.com";
    public static final String API_URL_PREFIX_SI = "https://security.snssdk.com";
    public static final String API_URL_PREFIX_SRV = "http://ichannel.snssdk.com";
    public static final String LOCATION_UPLOAD_URL = buildUrl("/location/suloin/");
    public static final int MSG_APP_ALERT_ERROR = 10004;
    public static final int MSG_APP_ALERT_OK = 10003;
    public static final int MSG_BLOCK_WEBVIEW_NETWORK = 10011;
    public static final int MSG_COMPRESS_OK = 10007;
    public static final int MSG_ERROR = 11;
    public static final int MSG_GET_SETTING_ERROR = 10009;
    public static final int MSG_GET_SETTING_OK = 10008;
    public static final int MSG_OK = 10;
    public static final int MSG_POST_FEEDBACK_ERROR = 10002;
    public static final int MSG_POST_FEEDBACK_OK = 10001;
    public static final int MSG_QUERY_NETWORK = 10012;
    public static final int MSG_SAVE_MESSAGEID_NOW = 10010;
    public static final int MSG_SEND_SETTING_ERROR = 10006;
    public static final int MSG_SEND_SETTING_OK = 10005;
    public static final int OP_ERROR_API_ERROR = 17;
    public static final int OP_ERROR_CONNECT_TIMEOUT = 13;
    public static final int OP_ERROR_HIJACK_DATA = 23;
    public static final int OP_ERROR_INTERUPTED = 22;
    public static final int OP_ERROR_NETWORK_ERROR = 15;
    public static final int OP_ERROR_NETWORK_TIMEOUT = 14;
    public static final int OP_ERROR_NO_CONNECTION = 12;
    public static final int OP_ERROR_RESPONSE_LENGTH_EXCEED = 20;
    public static final int OP_ERROR_SERVER_ERROR = 16;
    public static final int OP_ERROR_SERVICE_UNAVAILABLE = 19;
    public static final int OP_ERROR_SSL = 21;
    public static final int OP_ERROR_UNKNOWN = 18;
    public static final String USER_CITY_CANCEL_URL = buildUrl("/location/cancel/");
    public static final String USER_CITY_UPLOAD_URL = buildUrl("/location/suusci/");

    public static String buildUrl(String path) {
        return API_URL_PREFIX_I + path;
    }

    protected static String si(String str) {
        return API_URL_PREFIX_SI + str;
    }

    protected static String api(String str) {
        return API_URL_PREFIX_API + str;
    }

    public static String srv(String str) {
        return API_URL_PREFIX_SRV + str;
    }

}

